home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nebula 2
/
Nebula Two.iso
/
SourceCode
/
Palettes
/
SwitchBox
/
Makefile.postamble
< prev
next >
Wrap
Makefile
|
1995-06-12
|
2KB
|
45 lines
# Makefile.postamble,v
# Revision 1.1.1.1 1992/09/14 13:53:41 nwc
# NS3-GENESIS
#
# Revision 1.2 1992/09/14 04:59:39 nwc
# Made the Palette preamble and postamble NeXTSTEP 3.0 compatible.
#
# Revision 1.1.1.1 1992/08/03 02:51:34 nwc
# Genesis
#
# Revision 1.3 1992/07/31 14:34:30 nchristo
# Typo correction
#
# Revision 1.2 1992/07/31 14:32:29 nchristo
# Added caveat to postamble.
#
# Revision 1.1 1992/07/16 12:53:10 nchristo
# Initial revision
#
# Generic Palette .postamble
# NB: There is a slight kludge here. The library associated with this palette
# is built using "ld -r" not the ar command. This relieves the programmer from
# using "-u object" in thier make files. Very nice. However EVERYTHING included
# in the "ld -r" will get pulled into any app that includes the lib. So you
# should be more selective as to what goes into the lib. For instance the
# inspectors should not be in the lib. I create the lib based on the
# CLASSES and PSWFILES variables. So, in ProjectBuilder the inspectors
# should be added to the project "Other Sources" not as "Classes".
# This will insure they get put in the palette but not the lib.
LOBJS = $(CLASSES:.m=.o) $(PSWFILES:.psw=.o)
LHFILES = $(CLASSES:.m=.h) $(PSWFILES:.psw=.h)
PRODUCTLIB = lib$(NAME).a
PRODUCTLIBDIR = $(INSTALLDIR)/lib
PRODUCTINCDIR = $(INSTALLDIR)/include/$(NAME)
install::
ld -r $(LOBJS) -o $(PRODUCTLIB)
mkdirs $(PRODUCTLIBDIR) $(PRODUCTINCDIR)
install -c -m 644 $(PRODUCTLIB) $(PRODUCTLIBDIR)
install -c -m 644 $(LHFILES) $(PRODUCTINCDIR)